package cnsatmsmart.automation.mmi.model.data;

import cnsatmsmart.automation.mmi.model.data.TSafe.Route;

/**
 *
 * @author SIK - PTIK, BPPT
 */
public class FlightPlan extends Route{

    /* atribut - atribut yang dimiliki oleh kelas FlightPlan */
        private String ID_Flight;

    /**
     * constructor - user defined contructor, no default constructor
     * @param IDFlight id untuk pesawat
     */
        public FlightPlan(String IDFlight)
        {
            this.ID_Flight = IDFlight;
        }

    /* getter */
        /**
         * mengembalikan ID Flight
         * @return String - ID flight
         */
        public String getID()
        {
            return this.ID_Flight;
        }

    /* method method yang dimiliki oleh kelas FlightPlan */
        @Override
        public int hashCode ()
        {
            return (this.ID_Flight.hashCode());
        }

        @Override
        public boolean equals (Object o) {
            return ((o != null) && (o instanceof FlightPlan) && (((FlightPlan)o).getID().equals(this.ID_Flight)));
        }
}

    

